<footer>
    <div class="footer-bottom">
        <div class="wrapper">
            <div class="row-fluid">
                <div class="span3 get-powered-div">
                    <div class="get-powered-wrap">
                        <span class="get-powered"><?php echo Yii::t('frontend', 'Get powered by')?></span>
                        <a class="logo-bt" href="<?php echo Yii::app()->homeUrl; ?>">
                            <div class="logo-bottom"></div>
                        </a>
                    </div>
                    <div class="clearfix"></div>
                    <div class="line"></div>
                    <div class="clearfix"></div>
                    <ul class="footer-menu">
                    	<li><a href="<?php echo Yii::app()->createUrl('frontend/page/index', array('url' => 'about-us')) ?>"><?php echo Yii::t('frontend', 'About Us')?></a></li>
                        <li><a href="<?php echo Yii::app()->createUrl('frontend/page/index', array('url' => 'blog')) ?>"><?php echo Yii::t('frontend', 'Blog')?></a></li>
                        <li><a href="<?php echo Yii::app()->createUrl('frontend/page/index', array('url' => 'privacy-policy')) ?>"><?php echo Yii::t('frontend', 'Privacy Policy')?></a></li>
                        <li><a href="<?php echo Yii::app()->createUrl('frontend/page/index', array('url' => 'terms-conditions')) ?>"><?php echo Yii::t('frontend', 'Terms and Conditions')?></a></li>
                        <li><a href="<?php echo Yii::app()->createUrl('frontend/page/index', array('url' => 'faq')) ?>"><?php echo Yii::t('frontend', 'FAQs')?></a></li>
                        <li><a href="<?php echo Yii::app()->createUrl('frontend/site/contact') ?>"><?php echo Yii::t('frontend', 'Contact')?></a></li>
                    </ul>
                </div>
                <div class="span3">
                	<h2><?php echo Yii::t('frontend', 'QUICK LINKS') ?></h2>
                    <div class="line"></div>
                    <div class="clearfix"></div>
                    <ul class="footer-menu">
                    	<li><a href="<?php echo Yii::app()->homeUrl; ?>"><?php echo Yii::t('frontend', 'Home')?></a></li>
                    	<li><a href="<?php echo Yii::app()->createUrl('frontend/search/index') ?>"><?php echo Yii::t('frontend', 'Browse')?></a></li>
                        <li><a href="<?php echo Yii::app()->createUrl('frontend/favourite/index') ?>"><?php echo Yii::t('frontend', 'My Favourites')?></a></li>
                        <li><a href="<?php echo Yii::app()->createUrl('frontend/hotdeal/index') ?>"><?php echo Yii::t('frontend', 'Time Deals')?></a></li>
                    </ul>
                </div>
                <!--<div class="span3">
                    <h2>MOBILE APPS</h2>
                    <div class="line"></div>
                    <img class="mobile-app" src="<?php echo $this->assetDir; ?>img/android.png"/>
                    <img class="mobile-app" src="<?php echo $this->assetDir; ?>img/apple.png"/>
                </div>-->
                <div class="span3">
                    <h2><?php echo Yii::t('frontend', 'WE ACCEPT')?></h2>
                    <div class="line"></div>
                    <div class="clearfix"></div>
                    <img src="<?php echo $this->assetDir; ?>img/bank.png"/>
                    <br>
                </div>
                <div class="span3">
                	<h2><?php echo Yii::t('frontend', 'STAY IN TOUCH')?></h2>
                    <div class="line"></div>
                    <?php
                    cs()->registerScriptFile(themeUrl().'/assets/js/jquery.pnotify.min.js');
                    cs()->registerCssFile(themeUrl().'/assets/css/jquery.pnotify.default.css');
                    $subsModel=new Subscription();
                    $form=$this->beginWidget('CActiveForm', array(
                        'id'=>'subscription-form',
                        'action'=>Yii::app()->controller->createUrl('/frontend/subscription/create'),
                        // Please note: When you enable ajax validation, make sure the corresponding
                        // controller action is handling ajax validation correctly.
                        // There is a call to performAjaxValidation() commented in generated controller code.
                        // See class documentation of CActiveForm for details on this.
                        'enableAjaxValidation'=>true,
                        //'enableClientValidation'=>false,
                        'clientOptions'=>array(
                            'validateOnSubmit'=>true,
                            'validateOnChange'=>false,
                            'validateOnType'=>false,
                            'afterValidate'=>"js:function(form, data, hasError){
                                $.ajax({
                                    type: 'POST',
                                    url: form.attr( 'action' ),
                                    data: form.serialize(),
                                    success: function( response ) {
                                        if(response=='Ok'){
                                            form[0].reset();
                                            $.pnotify({
                                                title: '". Yii::t('frontend', 'Congratulations')."',
                                                 text: '". Yii::t('frontend', 'You are now subscribed to our mailing list.')."',
                                                 type: 'success',
                                                 history: false,
                                                 sticker: false

                                              });
                                        }else {
                                         $.pnotify({
                                                title: '". Yii::t('frontend', 'Error')."',
                                                 text: jQuery.parseJSON(response).Subscription_email,
                                                 type: 'error',
                                                 history: false,
                                                  sticker: false

                                              });
                                        }
                                    }
                                });
                                return false;
                              }
                            ",
                        ),
                        'htmlOptions'=>array(
                            'class'=>'subscrible-form'
                        ),
                    )); ?>
                    	<div class="subscrible">
                            <?php echo $form->textField($subsModel,'email',array('placeholder'=>'email address')); ?>
                            <?php echo $form->error($subsModel,'email',array('hideErrorMessage'=>true)); ?>
                            <?php echo CHtml::submitButton(Yii::t('frontend', 'Subscribe'),array('class'=>"btn btn-subcrible")); ?>
    					</div>

                    <?php $this->endWidget(); ?>
                    <div class="clearfix"></div>
                    <span><?php echo Yii::t('frontend', 'Follow us on')?></span>
                    <div class="clearfix"></div>
                    <ul class="social-network">
                        <li><a href="<?php echo Options::getItem('twitter', 'header') ?>"><div class="social-element twitter" atl="Twitter" title="Twitter"></div></a></li>
                        <li><a href="<?php echo Options::getItem('facebook', 'header') ?>"><div class="social-element facebook" atl="Facebook" title="Facebook"></div></a></li>
                        <li><a href="<?php echo Options::getItem('gplus', 'header') ?>"><div class="social-element google" atl="Google Plus" title="Google Plus"></div></a></li>
                        <li><a href="<?php echo Options::getItem('instagram', 'header') ?>"><div class="social-element instagram" atl="Instagram" title="Instagram"></div></a></li>
                    </ul>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
	<div class="footer-bar">
    	<div class="wrapper">
        	<div class="row-fluid">
            	<div class="span6 copy-right">
                	© <?php echo date("Y",time()) ?>, <a href="#"> Shampoo</a>. <?php echo Yii::t('frontend', 'Developed by')?> <a href="#">Dotsy Media</a>
                </div>
                <div class="span6 footer-link">
                    <a href="<?php echo Yii::app()->createUrl('frontend/page/index', array('url' => 'privacy-policy')) ?>"><?php echo Yii::t('frontend','Privacy Policy')?>
                    </a>&nbsp; | &nbsp;&nbsp;<a href="<?php echo Yii::app()->createUrl('frontend/page/index', array('url' => 'terms-conditions')) ?>"><?php echo Yii::t('frontend', 'Terms and Conditions')?></a>
                </div>
            </div>
        </div>
    </div>
</footer> 
<!--Stat Counter-->
<script>
     $(document).ready(function() {
		$('#signin_form,#register_form').bind('click', function(e) {
			e.stopPropagation();
		});
		$('.br-tooltip').tooltip();
                $('.accordion-heading a').addClass('faq-collapsed').append('<span class="btn-expand"></span>');
	});
       

</script>
<script>(function() {
  var _fbq = window._fbq || (window._fbq = []);
  if (!_fbq.loaded) {
    var fbds = document.createElement('script');
    fbds.async = true;
    fbds.src = '//connect.facebook.net/en_US/fbds.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(fbds, s);
    _fbq.loaded = true;
  }
  _fbq.push(['addPixelId', '279943108864759']);
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', 'PixelInitialized', {}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?id=279943108864759&amp;ev=NoScript" /></noscript>    
<?php echo StatCounter::getCode();
if(request()->getQuery('type','')=='preview'){
    cs()->registerScript("#disableAnchor", "
    $('a').click(function() { return false; });
    ");
}

